package com.stepforward.me;

import java.util.ArrayList;

public class Itinerary {
	private String header;
	private ArrayList<Transfer> transfers = new ArrayList<Transfer>();
	private String totalTime;
	public String getHeader() {
		return header;
	}
	public void setHeader(String header) {
		this.header = header;
	}
	public ArrayList<Transfer> getTransfers() {
		return transfers;
	}

	public void addTransfer(Transfer transfer){		
		transfers.add(transfer);
	}
	public String getTotalTime() {
		return totalTime;
	}
	public void setTotalTime(String totalTime) {
		this.totalTime = totalTime;
	}
	public String toString(){
		StringBuffer sb = new StringBuffer();
		for (int i = 0 ; i < transfers.size();i++){
		sb.append(transfers.get(i).toString());
		}
		return sb.toString();
	}
	
}

class Transfer{
	private String route;
	private String getOn;
	private String onTime;
	private String getOff;
	private String offTime;
	public String getRoute() {
		return route;
	}
	public void setRoute(String route) {
		this.route = route;
	}
	public String getGetOn() {
		return getOn;
	}
	public void setGetOn(String getOn) {
		this.getOn = getOn;
	}
	public String getOnTime() {
		return onTime;
	}
	public void setOnTime(String onTime) {
		this.onTime = onTime;
	}
	public String getGetOff() {
		return getOff;
	}
	public void setGetOff(String getOff) {
		this.getOff = getOff;
	}
	public String getOffTime() {
		return offTime;
	}
	public void setOffTime(String offTime) {
		this.offTime = offTime;
	}
	public String toString(){
		StringBuffer sb = new StringBuffer();
		sb.append("Route : " + this.route +"\n");
		sb.append("Get On : " + this.getOn+"\n");
		sb.append("On Time: " + this.onTime+"\n");
		sb.append("Get Off : " + this.getOff+"\n");
		sb.append("Off Time: " + this.offTime+"\n");
		return sb.toString();
	}
	
}
